package com.example.demo.service;

import java.util.List;

/**
 * Created by void on 2020/5/1.
 */
public interface MailService {

    /**
     * 发送简单文本邮件
     * @param to
     * @param subject
     * @param content
     */
    void sendSimpleMail(String subject, String content, String... to);

    /**
     * 发送简单html邮件
     * @param to
     * @param subject
     * @param content
     */
    void sendHtmlMail(String to, String subject, String content);

    /**
     * 发送带附件的邮件
     * @param to
     * @param subject
     * @param content
     * @param filePaths
     */
    void sendAttachmentsMail(String to, String subject, String content, List<String> filePaths);

    /**
     * 发送内嵌资源的邮件
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     */
    void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);
}
